export default function collapsedReducer(prevState = { isCollapsed: false }, action) {
  const { type } = action;
  switch (type) {
    case "change_collapsed":
      let newState = { ...prevState };
      newState.isCollapsed = !prevState.isCollapsed;
      return newState;
    default:
      return prevState;
  }
}
